package top.chenfu.blog.dao;

import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import top.chenfu.blog.entity.Role;
import top.chenfu.blog.entity.User;

import java.util.List;

/**
 * @Auther chenfu
 * @2019/10/30 15:01
 * @Desc
 */
@Repository
public interface UserMapper extends Mapper<User> {

    List<Role> selectRolesByUserId(Long id);

    User selectOneByUsername(String username);
}
